package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class NotificationData implements Parcelable {

	@JsonProperty("date")
	String date;
	@JsonProperty("message")
	String message;
	@JsonProperty("time")
	String time;
	@JsonProperty("token")
	String token;
	@JsonProperty("type")
	String type;

	@JsonProperty("image")
	String image;

	@JsonProperty("user")
	String user;

	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getTime() {
		return this.time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	protected NotificationData(Parcel in) {
		date = in.readString();
		message = in.readString();
		time = in.readString();
		token = in.readString();
		type = in.readString();
		image = in.readString();
		user = in.readString();
	}

	public NotificationData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(date);
		dest.writeString(message);
		dest.writeString(time);
		dest.writeString(token);
		dest.writeString(type);
		dest.writeString(image);
		dest.writeString(user);
	}

	public static final Parcelable.Creator<NotificationData> CREATOR = new Parcelable.Creator<NotificationData>() {
		public NotificationData createFromParcel(Parcel in) {
			return new NotificationData(in);
		}

		public NotificationData[] newArray(int size) {
			return new NotificationData[size];
		}
	};
}